Recently cleaned up the Linux zip/unzip command, as follows:
Command name: Zip
Function Description: Compress file.
Syntax: Zip [-acddffghjjkllmoqrstuvvwxyz$][-b ][-ll][-n ][-t ][-][Compressed files [Document ...] [-i
Supplemental Note: Zip is
1 to export to a ZIP file, you must first write the content to a file. Create the file and then write the content to the file. Writes content to a file through a stream.
such as: File File=new file (filename_);
FileOutputStream fileoutputstream=new
using zip commands to compress and decompress files in LinuxTransferred from http://www.itivy.com/linux/archive/2012/3/22/linux-zip.html
In Windows, we use the most of the decompression software is winrar, this software is very convenient for us
The zip command can be used to compress files into common zip formats. The unzip command is used to decompress the zip file.
Linux zip command details
Function description: compress a file.
Syntax: zip [-AcdDfFghjJKlLmoqrSTuvVwXyz $] [-B
] [-Ll]
Several important python functions (lambda, filter, reduce, map, zip) and pythonlambda
1. Anonymous function lambda
Lambda argument1, argument2,... argumentN: expression using arguments
1. lambda is an expression rather than a statement.
Because
one, anonymous function lambdaLambda argument1,argument2,... argumentn:expression using arguments1, Lambda is an expression, not a statement.Because of this, Lambda can appear where the DEF is not allowed in the Python syntax---for example, in a
The compressed files in linuxlinuxinclude .tar.gz,.zip,.gz. in linux, you must renew the days when .rar is absent. The following example shows how to package the full file name generated after tar-zcvf/home/files.tar.gz/filestar-zcvf is packed:
The basic usage of the zip command and the zip command
The basic usage of the zip command is:
Zip [parameter] [package file name] [Package directory path]
Linux zip command parameter list:
-A converts a file to ASCII mode.-F try to repair
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.